<?php
$model = new BDynamicFormModel();
$searchTextField = 'media_searchText_search_memberPointAccountList';
$model->addField($searchTextField);
?>
<?php
$form = $this->beginWidget('CActiveForm', array(
    "id" => "searchAccountForm",
    'enableAjaxValidation' => FALSE,
    'htmlOptions' => array('class' => 'form-search'),
        ));
?>
<div class="text-center">
    <?php echo CHtml::activeTextField($model, $searchTextField, array('class' => 'input-medium')); ?>
    <?php
    echo $control->getAjaxLink(array('id' => 'searchList', 'name' => '列表搜索'), array(
        'htmlOptions' => array('class' => 'btn'),
        'cooker' => 'BAMemberPointCooker@searchMemberPointList',
//        'searchText' => '34'
//    'searchText' => $model->searchText
    ));
    ?>
    <?php
    echo $control->getLink(array('id' => 'searchByCardId', 'name' => '卡号查找'), array(
        'htmlOptions' => array(
            'class' => 'btn', 'target' => '_blank'),
        'cooker' => 'BAMemberPointCooker@searchMemberPointAccountByCardId',
        'theme' => 'mb_bootstrap'
    ));
    ?>
    <?php
    echo $control->getLink(array('id' => 'searchByMobile', 'name' => '手机查找'), array(
        'htmlOptions' => array(
            'class' => 'btn', 'target' => '_blank'),
        'cooker' => 'BAMemberPointCooker@searchMemberPointAccountByMobile',
        'theme' => 'mb_bootstrap'
    ));
    ?>
</div>
<?php
$this->endWidget();
?>


